/*
 * @Date: 2022-03-17 01:12:10
 * @Author: 1365595476@qq.com
 * @LastEditors: 1365595476@qq.com
 * @LastEditTime: 2022-03-17 02:56:45
 */
import { createStore, applyMiddleware } from 'redux'

// 引入redux-thunk
import thunk from 'redux-thunk'

import RootReducer from './rootReducer'

const store = createStore(
  RootReducer,
  // 这样就可以支持异步action了
  applyMiddleware(thunk)
)

export default store